import 'package:imperius_insights/entity/bugstats.dart';
import 'package:imperius_insights/entity/project.dart';
import 'package:imperius_insights/modules/projects/service.dart' as ProjectService;
import 'package:imperius_insights/modules/quality/service/buglist.dart' as BugStatsService;
class Domain {
  final String pmo;

  ProjectService.Service _projectSvc;
  BugStatsService.Service _bugStatsService;

  Domain({this.pmo}) {
    _projectSvc = ProjectService.Service();
    _bugStatsService = BugStatsService.Service();
  }

  Future<Project> fetchProjectBasalInfo() async {
    return _projectSvc.fetchProject(pmo);
  }

  Future<IssuesClassification> fetchIssues() async {
    return _bugStatsService.queryIssues(pmo);
  }
}
